package com.dure.commonlib.util;

import android.content.Context;


/**
 * Created by dure on 16-5-28.
 */
public class CheckUtil {


    public static boolean isTodayChecked(Context context, String dateKey) {
        if (!PreferencesUtils.hasKey(context, dateKey)
                || DateUtil.beforeCurrentDate(PreferencesUtils.getString(context, dateKey))) {
            PreferencesUtils.putString(context, dateKey, TimeUtils.getCurrentTimeInString(TimeUtils.DATE_FORMAT_DATE));
            return false;
        }


        return true;
    }
}
